<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="cutDetailList.title"/></title>
    <meta name="heading" content="<fmt:message key='formProcessDressMaker.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/lang/calendar-es.js'/>"></script>
    <script type="text/javascript" src="<c:url value='/scripts/calendar/calendar-setup.js'/>"></script>

</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpAddDressMaker.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
            <fmt:message key="help"/>
        </a>
    </h2>
</div>
<fieldset>
    <legend><fmt:message key="cutProcessForm.selectDatas"/></legend>

    <s:hidden name="processDressmaker.id" value="%{processDressmaker.id}"/>
    <table class="tableGrey" id="SelectedDatas">
        <thead>
            <tr>
                <th class="hidden"/>
                <th><fmt:message key="processDressmaker.employee.fullName"/></th>
                <th><fmt:message key="processDressmaker.initDate"/></th>
                <th class="hidden"/>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td> <s:property value="processDressmaker.employee.fullName" /> </td>
                <td> <s:property value="processDressmaker.initDate" /> </td>
            </tr>
        </tbody>
    </table>
   <c:set var="buttons">
       <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
        <input type="button" onclick="location.href='<c:url value="/genJasRepAsignDressMaker.html"/>'"
               value="<fmt:message key="button.reportPDF"/>"/>
    </c:set>
    <c:out value="${buttons}" escapeXml="false" />

</fieldset>
<fieldset>
    <legend><fmt:message key="addDressMakerForm.itemsAsigned"/></legend>
    <display:table name="pantDetailList" class="table" requestURI="" id="pantDetailList_1" export="false"
                   pagesize="25" list="pantDetailList_1">

        <display:column sortable="false" titleKey="formProcessDressMaker.re-asign" style="width: 5%"
                        autolink="true" media="html" href="reasignPantDetailProcessDressmaker.html" paramId="id" paramProperty="id">
            <c:if test="${pantDetailList_1.deleted }">
                <img src="<c:url value="/images/asc.gif" />" alt="Edit" />
            </c:if>
            <c:if test="${!pantDetailList_1.deleted }">
                <img src="<c:url value="/images/alert.gif" />" alt="Delete" />
            </c:if>
        </display:column>

        <%--display:column property="onStock" sortable="true" titleKey="formProcessDressMaker.stock"/--%>
        <display:column property="storageCut.pantDesign.datas" sortable="true" titleKey="formProcessDressMaker.quantity"/>
        <display:column property="distribution" sortable="true" titleKey="formProcessDressMaker.distribution"/>
        <display:column property="quantity" sortable="true" titleKey="formProcessDressMaker.quantity"/>
        <display:column property="priceXclothes" sortable="true" titleKey="formProcessDressMaker.priceXclothes"/>
        <%--display:column property="quantityFail" sortable="true" titleKey="formProcessDressMaker.quantityFail"/>
        <display:column property="priceXclotheFail" sortable="true" titleKey="formProcessDressMaker.priceXquantityFail"/--%>
        <display:column property="totalAmountClothes" sortable="true" titleKey="formProcessDressMaker.totalAmountClothes"/>

        <display:column property="totalAmount" sortable="true" titleKey="formProcessDressMaker.totalAmount"/>
        <%--display:column property="currentAmount" sortable="true" titleKey="formProcessDressMaker.currentAmount"/--%>

        <display:column property="quantityRealClothes" sortable="true" titleKey="formProcessDressMaker.quantityRealClothes"/>
        <%--display:column property="quantityRealClothesCurrent" sortable="true" titleKey="formProcessDressMaker.quantityRealClothesCurrent"/--%>

        <display:column sortable="false" titleKey="formProcessDressMaker.deletePantDetail" style="width: 5%"
                        autolink="true" media="html" href="deletePantDetail.html" paramId="id" paramProperty="id">
            <c:if test="${pantDetailList_1.deleted }">
                <img src="<c:url value="/images/trash.png" />" alt="Trash" />
            </c:if>
            <c:if test="${!pantDetailList_1.deleted }">
                <img src="<c:url value="/images/alert.gif" />" alt="Delete" />
            </c:if>
        </display:column>

        <display:setProperty name="paging.banner.item_name" value="cut process"/>
        <display:setProperty name="paging.banner.items_name" value="cut processes"/>

        <display:setProperty name="export.excel.filename" value="CutProcess List.xls"/>
        <display:setProperty name="export.csv.filename" value="CutProcess List.csv"/>
        <display:setProperty name="export.pdf.filename" value="CutProcess List.pdf"/>

    </display:table>
</fieldset>

<fieldset>
    <legend><fmt:message key="addDressMakerForm.itemsAvailable"/></legend>

    <display:table name="storageCutList" cellspacing="0" cellpadding="0" requestURI=""
                   defaultsort="1" id="storageCutList" pagesize="25" class="table" >
        <display:column sortable="false" titleKey="formProcessDressMaker.editPantDetail" style="width: 10%"
                        autolink="true" media="html" href="addPantDetailForm.html" paramId="id" paramProperty="id">
            <img src="<c:url value="/images/edit.png" />" alt="Edit" />
        </display:column>
        <display:column property="pantDesign.model.datas" escapeXml="true" sortable="true" titleKey="cutProcessForm.asignationDetail.model" style="width: 20%"/>
        <display:column property="pantDesign.modelSize.valueSize" sortable="true" titleKey="cutProcessForm.asignationDetail.size" style="width: 10%" autolink="true" media="html"/>
        <display:column property="pantDesign.material.completeName" sortable="true" titleKey="cutProcessForm.asignationDetail.typeMaterial" style="width: 25%" autolink="true" media="html"/>

        <display:column property="stock" sortable="true" titleKey="cutProcessForm.asignationDetail.quantityRealClothesCurrent" style="width: 10%" autolink="true" media="html"/>

    </display:table>
</fieldset>